#include <windows.h>
#include <delayimp.h>
#pragma comment (lib, "delayimp")

#include "../Processor/inc/Mat.h"
#include "../Processor/inc/Processor.h"
#include "../Processor/inc/FileReader.h"
#include "../Processor/inc/FileWriter.h"
#pragma comment (lib, "../Release/Processor")

#include <cmath>
#include <iostream>
using namespace std;

int main (void) {
	/*My library test.*/
	MatrixData data;
	data.clear ();
	/*for (int i = 0; i < 100; ++i) {
		MatrixRow row;
		for (int j = 0; j < 200; ++j) {
			row.push_back (rand () % 10);
		}
		data.push_back (row);
	}*/
	IMat* first = new Mat (data);
	IMat* second = new Mat (*first);

	FileReader* reader = new FileReader();
	FileWriter* writer = new FileWriter();
	
	reader->setrFileURL("text.txt");
	first->Load(reader);
	writer->setFileURL("test2.txt");
	first->Save(writer);
	cout<<"Processor::compareMatrix (*first, *second) = "<<(double) Processor::compareMatrix (*first, *second)<<endl;	
	system ("pause");
	
	delete first;
	delete second;
	return (0);
}